package com.zhj.product.converter;

import com.zhj.product.entity.dto.CategoryDTO;
import com.zhj.product.entity.pojo.Category;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 轮播转换器
 */
@Mapper
public interface CategoryConverter {

    CategoryConverter INSTANCE = Mappers.getMapper(CategoryConverter.class);

    CategoryDTO poToDto(Category category);

    List<CategoryDTO> poToDto(List<Category> category);
}
